<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>Document</title>
	<script type="text/javascript">
	function pc(name,color,width,price,game){
				this.name="war god";
				this.color="黑色";
				this.width="40cm";
				this.price="5499";
				this.game=function (){
					alert('游戏')
				}
			}
	var mypc=new pc;
	console.log(mypc)
	document.write(mypc.color)
	</script>
</head>
<body>
	
</body>
</html>